﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="xcha.aspx.cs" Inherits="xcha" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            background-color: #CCCCCC;
        }
        .auto-style3 {
            width: 345px;
            background-color: #CCCCCC;
        }
        .auto-style4 {
            width: 346px;
        }
        .auto-style5 {
            width: 350px;
            background-color: #CCCCCC;
        }
        .auto-style6 {
            width: 350px;
            height: 25px;
            background-color: #CCCCCC;
        }
        .auto-style7 {
            width: 345px;
            height: 25px;
            background-color: #CCCCCC;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <div style="width: 714px">
            <table class="auto-style1">
                <tr>
                    <td class="auto-style6">
                        <asp:CheckBox ID="chdh" runat="server" Text="销售单号" OnCheckedChanged="ckyao_CheckedChanged" />
                        <asp:TextBox ID="txthao" runat="server" CssClass="auto-style1"></asp:TextBox>
                    </td>
                    <td class="auto-style7">
                        <asp:CheckBox ID="chyname" runat="server" Text="药品名称" OnCheckedChanged="ckyao_CheckedChanged" />
                        <span class="auto-style1"><asp:DropDownList ID="drpyname" runat="server">
                        </asp:DropDownList>
                        </span></td>
                </tr>
                <tr>
                    <td class="auto-style5">
                        <asp:CheckBox ID="chqtime" runat="server" Text="起始时间" OnCheckedChanged="ckyao_CheckedChanged" />
                        <asp:TextBox ID="txttime" runat="server" CssClass="auto-style1"></asp:TextBox>
                        <asp:CalendarExtender ID="txttime_CalendarExtender" runat="server" Enabled="True" TargetControlID="txttime">
                        </asp:CalendarExtender>
                    </td>
                    <td class="auto-style3">
                        <asp:CheckBox ID="chjtime" runat="server" Text="结束时间" OnCheckedChanged="ckyao_CheckedChanged" />
                        <asp:TextBox ID="txttimee" runat="server" CssClass="auto-style1"></asp:TextBox>
                        <asp:CalendarExtender ID="txttimee_CalendarExtender" runat="server" Enabled="True" TargetControlID="txttimee">
                        </asp:CalendarExtender>
                    </td>
                </tr>
            </table>
            <br />
            <asp:Button ID="btncha0" runat="server" Text="查询" OnClick="btncha0_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btncin" runat="server" Text="清空" OnClick="btncin_Click" />
            <br />
            <table class="auto-style4">
                <tr>
                    <td>
        <asp:GridView ID="gvxiaoshou" runat="server" AutoGenerateColumns="False" style="background-color: #999966" Width="694px" AllowPaging="True" AllowSorting="True" DataKeyNames="X_ID" OnPageIndexChanging="gvjinhuo_PageIndexChanging" OnRowCancelingEdit="gvjinhuo_RowCancelingEdit" OnRowDataBound="gvjinhuo_RowDataBound" OnRowDeleting="gvjinhuo_RowDeleting" OnRowEditing="gvjinhuo_RowEditing" OnRowUpdating="gvjinhuo_RowUpdating" OnSelectedIndexChanged="gvjinhuo_SelectedIndexChanged" OnSorting="gvjinhuo_Sorting" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField DataField="X_DANHAO" HeaderText="销售单号" />
                <asp:BoundField DataField="X_TIME" HeaderText="销售时间" />
                <asp:BoundField DataField="X_ID" HeaderText="药品编号" />
                <asp:BoundField DataField="X_NAME" HeaderText="药品名称" />
                <asp:BoundField DataField="X_NUMBER" HeaderText="药品数量" />
                <asp:BoundField DataField="X_PRICE" HeaderText="药品单价" />
                <asp:BoundField DataField="X_TNAME" HeaderText="销售员工" />
                <asp:BoundField DataField="X_ZE" HeaderText="总金额" />
                <asp:CommandField ShowEditButton="True" />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
            <FooterStyle BackColor="#CCCC99" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#F7F7DE" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FBFBF2" />
            <SortedAscendingHeaderStyle BackColor="#848384" />
            <SortedDescendingCellStyle BackColor="#EAEAD3" />
            <SortedDescendingHeaderStyle BackColor="#575357" />
        </asp:GridView>
                    </td>
                </tr>
            </table>
        </div>
    
    </div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    </form>
</body>
</html>
